projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8828932
)
togglebutton: Fix mnemonic activation
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 23 May 2021 14:26:21 +0000
(10:26 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 23 May 2021 15:20:00 +0000
(11:20 -0400)
We want to grab the focus when we're focusable, so
look at the focusable property.
gtk/gtktogglebutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtktogglebutton.c
b/gtk/gtktogglebutton.c
index 3a24a0c31406182fe20ad0fdbd7b1399edde2164..4ea135ee482dcf884324e30469b682c7cdf7247f 100644
(file)
--- a/
gtk/gtktogglebutton.c
+++ b/
gtk/gtktogglebutton.c
@@
-184,7
+184,7
@@
gtk_toggle_button_mnemonic_activate (GtkWidget *widget,
* gtk_widget_real_mnemonic_activate() in order to focus the widget even
* if there is no mnemonic conflict.
*/
- if (gtk_widget_get_
can_focus
(widget))
+ if (gtk_widget_get_
focusable
(widget))
gtk_widget_grab_focus (widget);
if (!group_cycling)